﻿$(document).ready(function () {
    if ($("input[ctype='smartbox']").length > 0) {
        loadJs({ url: "Scripts/smartbox.js" });
        $("input[ctype='smartbox']").smartbox();
    }
});

function loadJs(options) {
    var w = this;

    //default değerleri
    var defaults = {
        url: ''
    };

    var empty = {};

    var opt = $.extend(empty, defaults, options);

    var jslink = $('<script src="' + opt.url + '" type="text/javascript"></script>');
    $("head").append(jslink);
};